<template>
  <div>
    <h1>One</h1>
    <button @click="$emit('fn1')">触发fn1</button>
    <Two v-bind="$attrs" v-on="$listeners" />
  </div>
</template>

<script>
  import Two from "./Two";
  export default {
    name: "One",
    props: ["a"],
    components: {
      Two,
    },
    mounted() {
      console.log(this.$attrs);
      console.log(this.$listeners);
    },
  };
</script>

<style></style>
